<template>
  <div class="box">
    Find内容
    <button @click="toMy">跳转到part</button>
     <button @click="toMy1">跳转到我的音乐</button>
  </div>
</template>

<script>
export default {
  name: "FindComp",
  methods: {
    toMy() {
      //编程式导航跳转
      this.$router.push({
        name: "friend",
        //query传参
        params: {
          xiaohei: '小黑',
          age:19
        }
      });
    },
    toMy1() {
      this.$router.push({
        name: 'my',
        params: {
          words: '黑马',
          id:100
        }

      })
    }
  },
};
</script>

<style>
</style>